Bookly\Lib\Utils\DateTime A

Total Complexity 60
Dependencies 2
Dependents 47
Total lines 581
Lines of code 297
Logical lines of code 137
Comment lines 140
Methods 20
Properties 4

Methods 20

Method Rating Maintainability Complexity Lines of code
getTimeZoneOptions()
A
36 7 93
secondsToInterval()
S
49 7 30
formatDateFor()
S
57 7 15
convertFormat()
S
55 6 20
getDatePartsOrder()
S
55 6 19
timeToSeconds()
S
58 3 15
buildTimeString()
S
61 3 11
datePickerOptions()
S
55 2 19
applyTimeZone()
S
64 3 9
dateRangeOptions()
S
54 1 21
formatOffset()
S
66 2 8
timeZoneOffset()
S
65 2 8
formatTime()
S
76 2 3
validateDate()
S
74 2 4
formatDate()
S
76 2 3
UTCToWPTimeZone()
S
77 1 3
convertTimeZone()
S
70 1 6
applyTimeZoneOffset()
S
73 1 4
formatDateTime()
S
78 1 3
formatInterval()
S
78 1 3